package com.whw.springboot.walk.mapper;

import com.whw.springboot.walk.entity.Goods;

import java.util.List;

public interface GoodsMapper {

    int addGoods(Goods goods);

    int delGoodsByPrimaryKey(String goodsId);

    int updateGoodsByPrimaryKey(Goods goods);

    Goods selectOneGoodsByPrimaryKey(String goodsId);

    //模糊查询
    List<Goods> selectGoodsByName(String goodName);

    List<Goods> selectAllGoods();

}
